Repository navigation
fix(playground): search instruments by label - #1817
Closed
misaelalves99 wants to merge 1 commit into
Closed
misaelalves99 wants to merge 1 commit into
misaelalves99 wants to merge 1 commit into
Conversation
joshunrau
requested changes
Oct 25, 2026
joshunrau
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for picking this up! Searching by label works now, and this is the fix #1764 suggested first. A few things before it can go in:
- The search still matches the UUIDs. cmdk's default filter joins
valueandkeywordsinto one string and scores that, so the hidden UUID is still searched. Any query made only of hex characters (3,a,face) still lists instruments whose UUID happens to match.4lists every instrument, because every v4 UUID contains a4. That's the "aor3returns an arbitrary set" part of #1764. Could you switch to the issue's alternative fix? InInstrumentSelector.tsx(lines 50-57), usevalue={instrument.label}, dropkeywords, and callsetSelectedInstrument(instrument.id)from the closure inonSelect. Labels are already unique: upload, clone and share-link import each give a new instrument a unique label. - Cover that in the e2e test. In
playground.spec.ts, also fill the search with4and expectNo Instruments Found. The result is deterministic, becausecrypto.randomUUID()always puts a4in the version digit and no built-in label contains one. The assertion fails on the branch as it stands. - Go through the page object. The new test repeats the combobox and search-box locators (
playground.spec.ts:113-114) thatPlaygroundPage.selectInstrumentalready uses. Please move them intotesting/src/pages/playground/index.page.ts, either as locators set in the constructor or as a smallsearchInstruments(query)method thatselectInstrumentreuses. Then drive the spec through it.
If you hand this to Claude Code, Opus 5 is the right size. The edits are three small, fully specified changes across the playground and the e2e suite.
Reviewed at commit d257bf6.
This was referenced Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Form Referenceby its visible label.Fixes #1764.
Validation
Testing limitations
RELEASE_VERSIONrequirement.